<form method="post" action="authors.php">
    Author name: <input type="text" name="author_name" />
    <input type="submit" value="Add Author" />    
</form>
<br>
<p>
   <?php 
   if (!empty($data['ok'])) {
       echo $data['ok'] ;
    }
 ?>
</p>
<table border='1'>
    <tr><th>Author name</th></tr>
    <?php 
    foreach ($data['authors'] as $id=>$authors) {
        echo 
   '<tr>
        <td><a href="index.php?author_id='.$id.'">' . $authors . '</a></td>
   </tr>';
    }
    ?>
</table>
